package com.slliver;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;


@SpringBootApplication
public class SentinelApplication {


    public static void main( String[] args ) {
        System.out.println( "Hello World Sentinel!" );
        SpringApplication.run(SentinelApplication.class, args);
    }



    @Bean
    public SentinelResourceAspect sentinelResourceAspect(){
        return new SentinelResourceAspect();
    }
}
